var mongoose = require('mongoose');
var mongoosePaginate =require('mongoose-paginate');
var Schema = mongoose.Schema;
var BookSchema = new Schema({
  'campus' :String,
  'intake' :String,
  'major' : Array,
  'bookname': String,
  'author': String,
  'bookImage': String
});

// 分页
BookSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Books', BookSchema);